/*
 * @Author: your name
 * @Date: 2022-01-22 11:02:44
 * @LastEditTime: 2022-04-18 16:31:48
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \my-app\src\store\action\index.ts
 */
interface AddAction {
	type: symbol
	data: number
}
export const SUB_TYPE = Symbol('user/subType');
export const sub = (action: AddAction) => {
	return async (dispatch: any) => {
		await new Promise((resolve, reject) => {
			setTimeout(() => {
				resolve(1000)
			}, 1000)
		})
		dispatch(action)
	}
};
